package com.xt.dao;

import com.xt.bean.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by XT on 2018/5/3.
 */
public interface ArticleRepository extends MongoRepository<Article,String> {

    Page<Article> findByTitleLikeAndAuthorIdLikeAndContentLikeAndTagLikeAndAtypeLikeAndKnowledgePointIdLike(
            String title,
            String authorId,
            String content,
            String tag,
            String atype,
            String knowledgePointId,
            Pageable pageable);
}
